package com.jims.master.modules.sync.dao; /**
 * jims
 */

import com.jims.master.common.persistence.CrudDao;
import com.jims.master.common.persistence.annotation.MyBatisDao;
import com.jims.master.common.web.impl.BaseDto;
import com.jims.master.modules.sync.entity.TransferRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 转诊记录DAO接口
 * @author ct
 * @version 2017-12-14
 */
@MyBatisDao
public interface TransferRecordDao extends CrudDao<TransferRecord> {

    public String getMaxTime();

    public int insertTransfer(List<BaseDto> list);

    public List<TransferRecord> transferColumn();

    public List<TransferRecord> getBaseByDoctor(@Param("doctorId") String doctorId);

    public List<TransferRecord> getBaseByBaseinfo(@Param("baseinfoId") String baseinfoId);

    public TransferRecord getByClinic(@Param("outClinic") String outClinic);

    /**
     * @Title:findByClinicId
     * @Description: （根据门诊主表id查询转诊记录）
     * @param clinicId
     * @return
     * @author WangYQ
     * @date 2018/04/13
     * @throws
     */
    public TransferRecord findByClinicId(@Param("clinicId") String clinicId);
	
}